﻿using YAPL.Language.Ast;

namespace YAPL.Language.SourceParser {
	public class InputAnalyzer {
		private readonly InputInfo _inputInfo;
		public InputAnalyzer(InputInfo inputInfo) {
			_inputInfo = inputInfo;
		}

		public Expression BuildAstFromInput() {
			var parser = InputParserFactory.CreateParser(_inputInfo);
			return parser.ParseInput();
		}
	}
}
